/**
 * ClientRmi.java created by zhangzhidong 
 * at 下午4:21:14 2015年8月19日
 */
package rmi;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

/**
 * @author Alex
 *
 */
public class ClientRmi {

	/**
	 * 下午4:21:14 2015年8月19日
	 * @param args
	 * @throws NotBoundException 
	 * @throws RemoteException 
	 * @throws MalformedURLException 
	 */
	public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException {
		// TODO Auto-generated method stub
		SecurityManager sm = new SecurityManager();
		System.setSecurityManager(sm);
		User u =new User();
		u.setMessage("This is from client");
		Conference con=(Conference)Naming.lookup("rmi://localhost:9999/ConferenceService");
		con.serizalizeConference(u);

	}

}
